@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Gugi&family=Orbit&display=swap");

:root {
  --sn-retro-color-1: #222831;
  --sn-retro-color-2: #31363f;
  --sn-retro-color-3: #76abae;
  --sn-retro-color-4: #eeeeee;
}

.spark {
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-20px, -20px);
}
.spark span {
  position: absolute;
  width: 2px;
  height: 20px;
  pointer-events: none;
  transform-origin: bottom;
  overflow: hidden;
  filter: drop-shadow(0 0 20px #76abae) drop-shadow(0 0 40px #76abae);
}
.spark span::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #76abae;
  animation: span_animate 0.3s ease-in-out forwards;
}
@keyframes span_animate {
  0% {
    transform: translateY(20%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.flow-text {
  position: absolute;
  width: 100%;
  z-index: 50;
  color: white;
  text-transform: uppercase;
  font-size: 16px;
  animation: text-to-right 5s linear infinite;
  white-space: nowrap;
}
@keyframes text-to-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.bg-pattern {
  position: absolute;
  width: calc(100% - 158px);
  height: calc(100% - 77px);
  margin: 40px 80px;
  background: linear-gradient(to bottom, transparent 38.5px, #dddddd85 38.5px)
      0px 2px / 100vw 40px repeat-y,
    linear-gradient(to right, transparent 38.5px, #dddddd85 38.5px) 2px 2px /
      40px 100vh repeat-x transparent;
}
.window-container,
.window-container * {
  box-sizing: border-box;
}
.window-container {
  background: var(--sn-retro-color-1);
  color: var(--sn-retro-color-4);
  border: 3px solid var(--sn-retro-color-4);
  width: 1280px;
  height: 800px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.window-cap {
  position: relative;
  width: 100%;
  height: 36px;
  background: var(--sn-retro-color-4);
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(var(--sn-retro-color-4) 70%, #5f5f5f 0);
  background-size: 100% 6px;
  border: 4px solid var(--sn-retro-color-4);
  border-left: 2px solid var(--sn-retro-color-4);
  border-right: 2px solid var(--sn-retro-color-4);
}
.window-cap-title {
  background: var(--sn-retro-color-4);
  height: 100%;
  align-content: center;
}
.window-cap-title span {
  font-family: "Gugi", sans-serif;
  font-size: 20px;
  color: black;
  padding: 0 36px;
  text-transform: capitalize;
}
.window-button {
  width: 22px;
  height: 22px;
  background: transparent;
  box-shadow: inset 2px 2px 0px 1px #00000077, inset 0 0px 3px 0px #00000077;
  background: var(--sn-retro-color-4);
  border: 2px solid var(--sn-retro-color-4);
}
.window-inner {
  padding: 30px 30px 20px;
  height: 760px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/*******************************************
	헤더 레이아웃
********************************************/

#header {
  box-sizing: border-box;
  padding: 5px;
  overflow: visible !important;
  background-color: var(--sn-retro-color-1) !important;
  font-family: "Orbit", sans-serif;
  box-shadow: 0 0 10px 0px #00000050;
}
h1#logo {
  padding: 10px 0 15px;
}
#logo img {
  width: 40px;
  height: auto;
}
#logo img:hover {
  transform: rotate(180deg);
}
.fix-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#no_design_gnb.menu-container,
.menu-container {
  position: relative;
  background: var(--sn-retro-color-2);
  padding: 10px 5px;
  border-radius: 10px;
}

.menu-container .sn-retro-menu {
  position: relative;
}
.menu-container .sn-retro-menu a {
  position: relative;
}
#gnb .menu-container .sn-retro-menu a svg {
  fill: var(--sn-retro-color-4);
  position: relative;
  z-index: 50;
  opacity: 60%;
}
#gnb .menu-container .sn-retro-menu.sn-retro-login a svg {
  fill: #ff6d9f;
  position: relative;
  z-index: 50;
  opacity: 60%;
}
#gnb .menu-container .sn-retro-menu.sn-retro-setting a svg {
  fill: #f6c668;
  position: relative;
  z-index: 50;
  opacity: 60%;
}
#no_design_gnb li.sn-retro-menu,
li.sn-retro-menu {
  margin-bottom: 10px;
}
#no_design_gnb li.sn-retro-menu:last-child,
li.sn-retro-menu:last-child {
  margin-bottom: 0;
}
.menu-container .sn-retro-tooltip {
  position: absolute;
  top: -15px;
  font-size: 12px !important;
  text-align: center !important;
  line-height: normal !important;
  white-space: nowrap;
  background: var(--sn-retro-color-4);
  color: var(--sn-retro-color-1) !important;
  padding: 5px 5px;
  display: inline-block;
  min-width: 50px;
  width: auto;
  box-shadow: 0 0 10px 0px #00000050;
  border-radius: 5px;
  font-weight: bold;
  transform: translateX(-85%);
  transition: 0.2s cubic-bezier(0.49, 1.11, 0.77, 1.27);
  opacity: 0;
  z-index: 10;
  visibility: hidden;
}

.sn-retro-menu:hover .sn-retro-tooltip {
  opacity: 100;
  visibility: visible;
  transform: translateX(15%);
}
#no_design_gnb li.sn-retro-menu:hover svg {
  opacity: 100;
}
li.sn-retro-menu:hover svg {
  opacity: 100 !important;
}

#gnb {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media all and (max-width: 1400px) {
  .window-container {
    max-width: 90vw;
    width: 90vw;
    top: 70px;
    width: 90vw;
    height: 95dvh;
    box-shadow: none;
  }
}
@media all and (max-width: 1025px) {
  #gnb {
    width: 50px !important;
    justify-content: start;
    overflow: hidden;
  }
}

/**************************************************************
	배경음악 이퀄라이저 효과
***************************************************************/

html.single .bgm-player {
  display: none !important;
}

.bgm-player {
  text-align: center;
  margin-bottom: 6px;
}
.bgm-player .title {
  display: inline-block;
  vertical-align: middle;
  line-height: 30px;
  font-size: 13px;
}
.bgm-player ul {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0 !important;
}
.bar-equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  position: relative;
  width: 30px !important;
  height: 30px !important;
  margin: 0 auto !important;
  overflow: hidden;
  text-align: center;
  box-sizing: border-box;
}
.bar-equalizer i {
  display: block;
  float: left;
  width: 1px;
  margin-right: 2px;
  border-radius: 5px;
  margin-top: 15px;
  transform: translateY(-50%);
  transition: height 0.3s linear;
  -webkit-transition: height 0.3s linear;
}
.bgm-player li {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
}
.bgm-player li a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  line-height: normal !important;
  text-align: center !important;
  text-indent: -999px;
  overflow: hidden;
}
.bgm-player li a svg {
  fill: var(--sn-retro-color-4);
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 50;
  opacity: 60%;
}
.bgm-player li a svg:hover {
  opacity: 100%;
}

.bgm-player li a:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-indent: 0;
  text-align: center;
  font-family: "icon";
  font-size: 12px;
}
.bgm-player li a.play:before {
  content: "";
}
.bgm-player li a.stop:before {
  content: "";
}
